home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS0398.lzh
/
AMOSLIST
/
000067_amos-request@svcs1.digex.net_Fri Mar 6 19:48:57 1998.msg
< prev
next >
Wrap
Text File
|
1998-04-01
|
4KB
|
82 lines
>From amos-request@svcs1.digex.net Fri Mar 6 19:48:57 1998
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id TAA17943
for <mcox@access.digex.net>; Fri, 6 Mar 1998 19:48:57 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id NAA15280
for amos-out; Fri, 6 Mar 1998 13:52:50 -0500 (EST)
Received: from pony-2.mail.digex.net (pony-2.mail.digex.net [204.91.241.6])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id NAA15277
for <amos-list@svcs1.digex.net>; Fri, 6 Mar 1998 13:52:49 -0500 (EST)
Received: from mail-in1.inet.tele.dk (mail-in1.inet.tele.dk [194.182.148.158])
by pony-2.mail.digex.net (8.8.8/8.8.8) with SMTP id NAA04724
for <amos-list@access.digex.net>; Fri, 6 Mar 1998 13:52:44 -0500 (EST)
Received: (qmail 7885 invoked from network); 6 Mar 1998 18:52:37 -0000
Received: from post8.tele.dk (194.239.134.172)
by mail-in1.inet.tele.dk with SMTP; 6 Mar 1998 18:52:37 -0000
Received: from post8.tele.dk ([194.239.180.44]) by post8.tele.dk
(Netscape Mail Server v2.02) with SMTP id AAA51648;
Fri, 6 Mar 1998 19:52:33 +0100
From: Jens Vang Petersen <top_cat@post8.tele.dk>
To: Magnus.Sjoberg@asdo.se, amos-list@access.digex.net
Date: Fri, 06 Mar 1998 14:11:51 +0100
Message-ID: <yam7369.2582.1748608312@post8.tele.dk>
In-Reply-To: <0C16986DE489D111860D00A024A419070E22C1@G02_STHLEX.asdo.se>
X-Mailer: YAM 2.0.0 Preview [020] - Amiga Mailer by Marcel Beck - http://www.yam.ch
Subject: Re: SV: A small Hint..
MIME-Version: 1.0
Content-Type: text/plain
Status: O
X-Status:
On 06-Mar-98, Magnus.Sjoberg@asdo.se smashed the keyboard with:
>> 's a little trick I found the other day, hope somebody can
> use it..
>
>> store an integer-array you would normaly open a sequentiel
> file and dump
>> data with a loop.. Well try this instead:
>> =50
>> A(MX)
>> -
>> FILE$,Varptr(A(0)) To Varptr(A(0))+(MX+1)*4
>>
>> to reload:
>> FILE$,Varptr(A(0))
>>
>> can simply replace Bsave with Ssave if you'd like to have
> more than one
>> in a file. Or use Copy to put in a bank :)
>
> Thanx for the tip. It's just what I need.
> Loop-storing/reading are so slow when it comes to bigger files.
> But how about big numbers and strings? I sence a bit of trouble
> here...
Strings don't work :(
All regular integer-arrays work (A(n), B(n)) etc.. With a little change it
is possible to use multi-dimension arrays. The (MX+1) should just be changed
to the number of elements in the array, so if you have a Dim A(6,6) then the
(MX+1) is changed to (7*7) element 0 is the first, resulting in 7 in each
dimension..
Integer holds numbers from -$80000000 -> $7FFFFFFF wich equals to
-2.147.483.648 -> 2.147.483.647, if you'd like to use floating numbers like
A#(n) then the *4 is changed to the length of each element in the floating
set (Still *4 if you're using Single/Fast float, but *8 if you are using
Double Precision numbers..)..
--
Kind regards from
______________________________________________________________________________
/_ __/ __ / __ /\ ___\ __ \__ _\ aka. JENS VANG PETERSEN
/ / / /_/ / ____/ \ \___\ __ \ \ \ top_cat@post8.tele.dk
/_/ /_____/_/ \_____\_\ \_\ \_\
------------------------------------------------------------------------------
http://home8.inet.tele.dk/top_cat/
-+- Home of 'The Ultimate Extension list' for AMOS TC & AMOS PRO -+-
-+- SUPPORT - AMOS - AMIGA - AQUA -+-
------------------------------------------------------------------------------
Hardware: The parts of a computer system that can be kicked.
------------------------------------------------------------------------------